<template>
  <web-view :src="url" onerror="onerror"></web-view>
</template>

<script setup>
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue'
const url = ref('')
onLoad((e) => {
  url.value = decodeURIComponent(`${e.url}`)
  console.log(url.value, '我是e.url');
})
function onerror(e) {
  console.log('webview error')
}
</script>

<style lang="less" scoped></style>
